package mc

import (
	"gitee.com/dreamwood/ez-go/db/mgo"
)

const (
	PayTypeEventNew           = "pm.PayTypeNew"
	PayTypeEventBeforeCreate  = "pm.PayTypeBeforeCreate"
	PayTypeEventBeforeUpdate  = "pm.PayTypeBeforeUpdate"
	PayTypeEventBeforeSave    = "pm.PayTypeBeforeCreate pm.PayTypeBeforeUpdate"
	PayTypeEventAfterCreate   = "pm.PayTypeAfterCreate"
	PayTypeEventAfterUpdate   = "pm.PayTypeAfterUpdate"
	PayTypeEventAfterSave     = "pm.PayTypeAfterCreate pm.PayTypeAfterUpdate"
	PayTypeEventDelete        = "pm.PayTypeDelete"
	PayTypeAccessControlEvent = "pm.PayTypeAccessControl"
)

func GetPayTypeConfig() *mgo.DocConfig {
	return PayType_Config
}

var PayType_Config *mgo.DocConfig

func init() {
	PayType_Config = NewPayTypeConfig()
}
func NewPayTypeConfig() *mgo.DocConfig {
	return &mgo.DocConfig{
		ContainerKey: "pm.PayType",
		Fields: []string{
			"name",
		},
		RelationFields:  []string{},
		RelationConfigs: map[string]*mgo.DocRelation{},
		FieldFilter: map[string]*mgo.DocFieldFilter{
			"default": {
				Select: []string{},
				Omit:   []string{},
			},
		},
	}
}
